window: Add a diagram to the CSS documentation
authorMatthias Clasen <mclasen@redhat.com>
Thu, 5 Nov 2015 21:13:06 +0000 (16:13 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 5 Nov 2015 21:13:06 +0000 (16:13 -0500)
gtk/gtkwindow.c

index e73df1772030a2b524a6f60fa5c6dc8e7fbe6714..59a1f976ef5d963241ad3a78e900c81e26f122d6 100644 (file)
  * The GtkWindow implementation of the GtkBuildable interface supports
  * setting a child as the titlebar by specifying “titlebar” as the “type”
  * attribute of a <child> element.
+ *
+ * # CSS nodes
+ *
+ * |[<!-- language="plain" -->
+ * window
+ * ╰── decoration
+ * ]|
+ *
+ * GtkWindow has a main CSS node with name window and style class .background,
+ * and a subnode with name decoration. Style classes that are typically used
+ * with the main CSS node are .csd, .solid-csd, .ssd, .tiled, .maximized,
+ * .fullscreen, .popup, .tooltip.
+ *
+ * GtkWindow adds the .titlebar and .default-decoration style classes to the
+ * widget that is added as a titlebar child.
  */
 
 #define MNEMONICS_DELAY 300 /* ms */